package com.hyj.shop.project.goods.service.impl;

import com.hyj.shop.project.goods.domain.GoodsType;
import com.hyj.shop.project.goods.mapper.GoodsTypeMapper;
import com.hyj.shop.project.goods.service.GoodsTypeService;
import com.hyj.shop.project.utils.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {
    @Autowired
    private GoodsTypeMapper goodsTypeMapper;
    @Override
    public AjaxResult findAll() {
        System.out.println("+++++++++++++++");
       List<GoodsType> list=goodsTypeMapper.findAll();
        System.out.println(list);
        System.out.println("**********");
     AjaxResult  ajax=AjaxResult.success();
    ajax.put("data",list);
    ajax.put("code",200);
    ajax.put("msg","查询成功");
        return ajax;
    }
}
